<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>MpegDemultiplexer: CTSBuilder Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MpegDemultiplexer
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_c_t_s_builder.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CTSBuilder Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CTSBuilder" --><!-- doxytag: inherits="ITSBuilder" -->
<p><code>#include &lt;<a class="el" href="_c_t_s_builder_8h_source.html">CTSBuilder.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CTSBuilder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_t_s_builder.png" usemap="#CTSBuilder_map" alt=""/>
  <map id="CTSBuilder_map" name="CTSBuilder_map">
<area href="class_i_t_s_builder.html" alt="ITSBuilder" shape="rect" coords="0,0,76,24"/>
</map>
 </div></div>

<p><a href="class_c_t_s_builder-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s_builder.html#a053e500c43bd6f97779f531b7bf6959b">CTSBuilder</a> (std::set&lt; unsigned int &gt; pids, bool bUseTimer=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s_builder.html#a634ff45ad9f95a3352e2fe81dcf30a25">~CTSBuilder</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s_builder.html#a4e38a3e5194dece7635e833b2aa3c193">findTS</a> (<a class="el" href="class_i_e_s_parser.html">IESParser</a> *cESParser)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::vector&lt; <a class="el" href="class_c_t_s.html">CTS</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s_builder.html#a20b45cfc45aa50df9d3b82d3908b0278">getTs</a> (unsigned int PID)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class builds TS packets from the data that was read from the ES.(by <a class="el" href="class_c_e_s_parser.html">CESParser</a>) When it finishes to build a TS it puts it its TS list (using PID to determine the TS list it belongs to) </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a053e500c43bd6f97779f531b7bf6959b"></a><!-- doxytag: member="CTSBuilder::CTSBuilder" ref="a053e500c43bd6f97779f531b7bf6959b" args="(std::set&lt; unsigned int &gt; pids, bool bUseTimer=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_t_s_builder.html#a053e500c43bd6f97779f531b7bf6959b">CTSBuilder::CTSBuilder</a> </td>
          <td>(</td>
          <td class="paramtype">std::set&lt; unsigned int &gt;&#160;</td>
          <td class="paramname"><em>pids</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>bUseTimer</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>c'tor </p>

</div>
</div>
<a class="anchor" id="a634ff45ad9f95a3352e2fe81dcf30a25"></a><!-- doxytag: member="CTSBuilder::~CTSBuilder" ref="a634ff45ad9f95a3352e2fe81dcf30a25" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_t_s_builder.html#a634ff45ad9f95a3352e2fe81dcf30a25">CTSBuilder::~CTSBuilder</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>d'tor</p>
<p>d'tor. deletes all TSs lists </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4e38a3e5194dece7635e833b2aa3c193"></a><!-- doxytag: member="CTSBuilder::findTS" ref="a4e38a3e5194dece7635e833b2aa3c193" args="(IESParser *cESParser)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_c_t_s_builder.html#a4e38a3e5194dece7635e833b2aa3c193">CTSBuilder::findTS</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_e_s_parser.html">IESParser</a> *&#160;</td>
          <td class="paramname"><em>cESParser</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function gets cESParser that holds the raw data it read from the binary file (ES stream) It goes through the data and builds TS packets from it. then when the new TS packet is ready - it puts it to TS list. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cESParser-</td><td>the <a class="el" href="class_c_e_s_parser.html">CESParser</a> class that holds the data read from the file (ES stream) </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_t_s_builder.html#ab4c35147b7f891877b3565c4857abf36">ITSBuilder</a>.</p>

</div>
</div>
<a class="anchor" id="a20b45cfc45aa50df9d3b82d3908b0278"></a><!-- doxytag: member="CTSBuilder::getTs" ref="a20b45cfc45aa50df9d3b82d3908b0278" args="(unsigned int PID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="class_c_t_s.html">CTS</a> * &gt; * <a class="el" href="class_c_t_s_builder.html#a20b45cfc45aa50df9d3b82d3908b0278">CTSBuilder::getTs</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>PID</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of Tss that were read with a specific PID </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">PID</td><td>the pid of the wanted Tss </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a vector of TSs </dd></dl>

<p>Implements <a class="el" href="class_i_t_s_builder.html#a75da94503e6e5035f682e16b18005203">ITSBuilder</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_c_t_s_builder_8h_source.html">CTSBuilder.h</a></li>
<li>CTSBuilder.cpp</li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_c_t_s_builder.html">CTSBuilder</a>      </li>

    <li class="footer">Generated on Sat Feb 4 2012 15:52:58 for MpegDemultiplexer by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
